package com.twu.biblioteca;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintStream;
import java.util.ArrayList;

/**
 * Created by kpradhan on 3/10/14.
 */
public class Library {
    private ArrayList<String> books;

    public Library(ArrayList<String> books) {
        this.books = books;
    }

    public ArrayList<String> getBooks() {
        return books;
    }

    @Override
    public String toString() {
        StringBuilder result = new StringBuilder();
        for (int i = 0; i < books.size(); i++) {
            result.append((i+1));
            result.append(". ");
            result.append(books.get(i));
        }
        return String.valueOf(result);
    }
}
